﻿<%@ Page Title="" Language="C#" MasterPageFile="/Common/Master.master" %>

<script runat="server">

</script>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentForm" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentHtml" runat="Server">
    <div id="toolBar" style="display: none;">
        <%--<div id="toolbarAdd" style="display: none;" data-options="iconCls:'icon-table_add',plain:'true'" class="easyui-linkbutton" onclick="$.fn.DataGrid.Insert(obj)">添加</div>
        <div id="toolbarEdit" style="display: none;" data-options="iconCls:'icon-table_edit',plain:'true'" class="easyui-linkbutton" onclick="$.fn.DataGrid.Update(obj)">修改</div>
        <div id="toolbarDelete" style="display: none;" data-options="iconCls:'icon-table_delete',plain:'true'" class="easyui-linkbutton" onclick="$.fn.DataGrid.Delete(obj)">删除</div>--%>
        <div id="toolbarSearchtext"></div>
    </div>
    <div id="page"></div>
    <table id="dg1" style="display: none;">
        <thead>
            <tr>
                <th data-options="field: 'userid',width: 150">钉钉用户id</th>
                <th data-options="field: 'unionid',width: 150">开发者下唯一id</th>
                <th data-options="field: 'managerUserId',width: 150">主管的ID</th>
                <th data-options="field: 'hiredDate',width: 150">入职时间</th>
                <th data-options="field: 'name',width: 150">名称</th>
                <th data-options="field: 'mobile',width: 150">手机</th>
                <th data-options="field: 'jobnumber',width: 150">工号</th>
                <th data-options="field: 'department',width: 150">部门集合</th>
                <th data-options="field: 'AddUserID',width: 150">创建人</th>
                <th data-options="field: 'AddTime',width: 150,formatter:function(val,rec){ return $.DateFormat(val, 'yyyy-MM-dd HH:mm:ss'); }">创建时间</th>
                <th data-options="field: 'LastTime',width: 150,formatter:function(val,rec){ return $.DateFormat(val, 'yyyy-MM-dd HH:mm:ss'); }">上次修改时间</th>
                <th data-options="field: 'LastUserId',width: 150">上次修改人</th>
                <th data-options="field: 'depGuid',width: 150">部门主键ID</th>
            </tr>
        </thead>
    </table>

    <script type="text/javascript">
        var obj;
        $(function () {
            obj = {
                id: "dg1",
                key: "ID",
                url: "Api/V1/dd_user/GetPagesuser",
                deleteUrl: "Api/V1/dd_user/Deleteuser",
                data: {},

                //title: "钉钉用户管理",
                dialogName: "钉钉用户管理",
                dialogWidth: Cookies.get('DialogWidth') + "px",
                dialogHeight: Cookies.get('DialogHeight') + "px",
                editUrl: "/DingDing/dd_user/edit.aspx",
                detailsUrl: "/DingDing/dd_user/details.aspx",
                toolBar: '#toolBar',
                footer: '#page',
                callback: function () { $.fn.DataGrid.onRefresh(obj); }
            };
            $.fn.DataGrid.DataBind(obj);
        });
    </script>
</asp:Content>

